<div class="container">
	<?php if(isset($dados['erro'])) { ?>
		<div class="alert alert-warning alert-dismissible" role="alert">
			<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
			<strong>Ops!</strong>Tem um problema com seu cadastro! Verifique as informações abaixo!
			<?php print_r($dados['erro']); ?>
		</div>
	<?php } ?>
	<div class="col-md-12">
	<h1>Cadastro novo usuário</h1>
		<form action="<?php echo URL; ?>usuarios/cadastro_processa" class="form-horizontal" method="POST">
			<div class="form-group">
				<label class="control-label col-sm-2 col-xs-12" for="nome">Nome:</label>
				<div class="col-sm-8 col-xs-12">
					<input <?php if(isset($_SESSION['formulario']['usuario']['nome'])) echo 'value="'.$_SESSION['formulario']['usuario']['nome'].'"'; ?> type="text" name="nome" class="form-control" id="nome" placeholder="">
				</div>
			</div>
			<div class="form-group">
				<label class="control-label col-sm-2 col-xs-12" for="email">Email:</label>
				<div class="col-sm-6 col-xs-12">
					<input <?php if(isset($_SESSION['formulario']['usuario']['email'])) echo 'value="'.$_SESSION['formulario']['usuario']['email'].'"'; ?> type="email" name="email" class="form-control" id="email" placeholder="">
				</div>
			</div>
			<div class="form-group">
				<label class="control-label col-sm-2 col-xs-12" for="senhacad">Senha:</label>
				<div class="col-sm-3 col-xs-12">
					<input type="password" name="senha" class="form-control" id="senha" placeholder="">
				</div>
			</div>
			<div class="form-group">
				<label class="control-label col-sm-2 col-xs-12" for="senhaconf">Confirmar senha:</label>
				<div class="col-sm-3 col-xs-12">
					<input type="password" name="senhaconf" class="form-control" id="senhaconf" placeholder="">
				</div>
			</div>
			<div class="form-group">
				<label class="control-label col-sm-2 col-xs-12">Data de nascimento:</label>
				<div class="col-sm-3 col-xs-12">
					<div class="input-group">
						<input <?php if(isset($_SESSION['formulario']['usuario']['datanasc'])) echo 'value="'.$_SESSION['formulario']['usuario']['datanasc'].'"'; ?> type="date" name="datanasc" class="form-control" id="datanasc" placeholder="">
						<span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
					</div>
				</div>
			</div>
			<div class="form-group">
				<div class="col-xs-10">
					<input type="submit" class="btn btn-primary" value="Cadastrar" style="float:right">
				</div>
			</div>
		</form>			
		</br>
	</div>
</div>